<template>
	<view>
		<mdx-from-input styles="margin-top: 24rpx;" title="姓名：" 
		placeholder="请输入姓名" v-model="from.name"></mdx-from-input>
		<mdx-from-input styles="margin-top: 24rpx;" title="身份证：" 
		placeholder="请输入身份证号" v-model="from.cardNo"></mdx-from-input>
		<view @click="submit" class="mdx-btn" style="margin-top: 240rpx;">
			提交
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				from:{
					name:"",
					cardNo:""
				}
			};
		},
		methods:{
			submit(){
				console.log("提交",this.from)
			}
		}
	}
</script>

<style lang="scss">
	.mdx-form-item{
		display: flex;
		flex-direction: row;
		align-items: center;
		padding: 20rpx 24rpx;
		width: 694rpx;
		height: 88rpx;
		background: #F9F9F9;
		border-radius: 12rpx;
		margin: 0 auto;
		text{
			font-size: 28rpx;
			color: #666666;
			line-height: 40rpx;
		}
	}
</style>
